From 87f6a9c455726ad0cf502a316d98db8da1d1806a Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Tue, 16 Aug 2022 20:00:49 +0200
Subject: consume matches pagination api

---
 web/pw-server/src/routes/bots/[bot_name].svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'web/pw-server/src/routes/bots/[bot_name].svelte')

diff --git a/web/pw-server/src/routes/bots/[bot_name].svelte b/web/pw-server/src/routes/bots/[bot_name].svelte
index cf8c42a..99278df 100644
--- a/web/pw-server/src/routes/bots/[bot_name].svelte
+++ b/web/pw-server/src/routes/bots/[bot_name].svelte
@@ -5,7 +5,7 @@
     const apiClient = new ApiClient(fetch);
 
     try {
-      const [botData, matches] = await Promise.all([
+      const [botData, matchesPage] = await Promise.all([
         apiClient.get(`/api/bots/${params["bot_name"]}`),
         apiClient.get("/api/matches", { bot: params["bot_name"], count: "20" }),
       ]);
@@ -19,7 +19,7 @@
           bot,
           owner,
           versions,
-          matches,
+          matches: matchesPage["matches"],
         },
       };
     } catch (error) {
-- 
cgit v1.2.3

